import java.util.*;
public class Arr{
  public static void main(String[] args){
    Scanner read=new Scanner(System.in );
    int n=read.nextInt();
    int a[]=new int[n+1];    //将数组长度加1
    int i;
    for(i=0;i<n;i++){
      a[i]=read.nextInt();
      
    }
    a[n]=read.nextInt();
    Arrays.sort(a);     //将数组进行排序
    for(i=0;i<=n;i++){
    System.out.print(a[i]+" ");
    }
  }
}